package com.cos.shop.services.impl;

import com.cos.shop.dao.ItemDao;
import com.cos.shop.dao.impl.ItemDaoImpl;
import com.cos.shop.entity.Item;
import com.cos.shop.services.ItemServices;
import com.cos.shop.util.StringUtils;
import com.cos.shop.vo.ItemProductVo;

import java.util.List;

/**
 * @author: COS
 * @time: 2023/5/12 10:43
 * @description:
 */
public class ItemServicesImpl implements ItemServices {
    private ItemDao id = new ItemDaoImpl();

    @Override
    public List<ItemProductVo> getItemListByOid(String oid) {
        try {
            if (StringUtils.isNotEmpty(oid)) {
                return id.getItemListByOid(oid);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
